Skip to content

Handle text endpoints#1135

Merged
l-trotta merged 2 commits into
mainfrom
handle-text-endpoints
Jan 12, 2026
Merged

Handle text endpoints#1135
l-trotta merged 2 commits into
mainfrom
handle-text-endpoints

Conversation

@l-trotta

Copy link
Copy Markdown
Contributor

Using the new response_media_type Request property introduced in the spec with elastic/elasticsearch-specification#5779 to correctly handle endpoints that return text/plain, including HotThreads.

Fixes #865.

@l-trotta
l-trotta merged commit 40f6d0a into main Jan 12, 2026
13 checks passed
@l-trotta
l-trotta deleted the handle-text-endpoints branch January 12, 2026 13:35
@github-actions

Copy link
Copy Markdown

The backport to 9.3 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.3 9.3
# Navigate to the new working tree
cd .worktrees/backport-9.3
# Create a new branch
git switch --create backport-1135-to-9.3
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 40f6d0a54c1bcabea39e70608661649c8950c16b
# Push it to GitHub
git push --set-upstream origin backport-1135-to-9.3
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.3

Then, create a pull request where the base branch is 9.3 and the compare/head branch is backport-1135-to-9.3.

@dadoonet

Copy link
Copy Markdown

Amazing! Thank you Laura

l-trotta added a commit that referenced this pull request Jan 12, 2026
* correctly handling text endpoints

* handle new text endnpoint in transport, tests
l-trotta added a commit that referenced this pull request Jan 12, 2026
* Handle text endpoints (#1135)

* correctly handling text endpoints

* handle new text endnpoint in transport, tests

* fix test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

calling hotThreads fails because of text/plain response format vs json

2 participants